﻿#region Usings

using System.Windows;

#endregion

namespace ScrumTable.UI.View.WinTouch.UserControls.Menu.MenuItems
{
    /// <summary>
    /// Represent a entry without a sub menu. (goto action) 
    /// </summary>
    public class LoginGoToEntry : GoToEntry
    {

        #region Declarations
        //--------------------------------------------------------------------
        // Declarations
        //--------------------------------------------------------------------
      
        #endregion
        
        #region Properties
        //--------------------------------------------------------------------
        // Properties
        //--------------------------------------------------------------------
        public override bool CanClick { get { return ScrumData.IsUserConnected; } }


        #endregion


        #region Methods
        //--------------------------------------------------------------------
        // Methods
        //--------------------------------------------------------------------


        public override void Action()
        {
            if (ScrumData.IsUserConnected)
            {
                NaviController.GoTo(GoTo);
            }
        }
        #endregion

 
    }
}
